package org.example.module_login.entity;

import java.util.Date;

import lombok.Getter;
import lombok.Setter;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;

import java.io.Serializable;

/**
 * 学生表(Student)表实体类
 *
 * @author HAJ
 * @since 2025-03-03 15:17:42
 */
@Getter
@Setter
@TableName("tbl_student")
public class Student implements Serializable {

    private static final long serialVersionUID = 1L;

    //id
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    //学生ID 用于账号
    private String studentId;

    //密码
    private String password;

    // 盐
    private String salt;

    //学生姓名
    private String name;

    //性别 1男生 2女生
    private Integer sex;

    //宿舍及床位号码 例如：A1601-1
    private String hostelNumber;

    //状态 0 禁用 1 可用
    private Integer state;

    //1 学生
    private Integer roleId;

    //创建时间
    private Date createTime;

    //版本号
    private Integer version;


}

